home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Trial
/
Camtasia 6
/
camtasia.msi
/
Cabs.w1.cab
/
fp7_controller.swf2307
/
scripts
/
frame_5
/
DoAction.as
Wrap
Text File
|
2008-10-10
|
3KB
|
107 lines
function XssCheck(strValue)
{
var _loc1_ = unescape(strValue).toLowerCase();
if(_loc1_.indexOf("asfunction:") != -1 || _loc1_.indexOf("geturl") != -1)
{
return true;
}
return false;
}
function trimURI(uri)
{
return uri = uri.substr(0,uri.indexOf(" ",uri.lastIndexOf(".")));
}
stop();
if(csPreview == "false")
{
if(csConfigFile != undefined)
{
if(XssCheck(csConfigFile))
{
csPreloader = escape(csPreloader);
csConfigFile = escape(csConfigFile);
gotoAndStop("express");
}
}
if(csPreloader != undefined)
{
if(XssCheck(csPreloader))
{
csPreloader = escape(csPreloader);
csConfigFile = escape(csConfigFile);
gotoAndStop("express");
}
}
}
if(csPreloader == undefined && csConfigFile != undefined)
{
csPreloader = "";
}
else if(csPreloader == undefined && csConfigFile == undefined)
{
csPreloader = trimURI(csPreloaderDefault);
}
if(csConfigFile == undefined)
{
csConfigFile = trimURI(csConfigFileDefault);
}
if(csPreloader != "")
{
var preloader_mc = this.createEmptyMovieClip("preloader_mc",2);
var target = preloader_mc.createEmptyMovieClip("target",1);
var pbackground = preloader_mc.createEmptyMovieClip("pbackground",0);
var fStageWidth = Stage.width;
var fStageHeight = Stage.height;
pbackground.beginFill(parseInt(csColor,16));
pbackground.moveTo(0,0);
pbackground.lineTo(fStageWidth,0);
pbackground.lineTo(fStageWidth,fStageHeight);
pbackground.lineTo(0,fStageHeight);
pbackground.lineTo(0,0);
pbackground.endFill();
var loader = new MovieClipLoader();
var loaderListener = new Object();
loaderListener.onLoadInit = function(target)
{
var _loc5_ = target._width;
var _loc4_ = target._height;
var _loc3_ = 100;
var _loc6_ = 0;
var _loc7_ = 0;
if(_loc5_ > fStageWidth || _loc4_ > fStageHeight || csScaleLoadingMov == "true")
{
if(_loc5_ > _loc4_)
{
_loc3_ = fStageWidth / _loc5_ * 100;
}
else
{
_loc3_ = fStageHeight / _loc4_ * 100;
}
}
if(csScaleLoadingMov != "true")
{
_loc6_ = (fStageWidth - target._width) / 2;
_loc7_ = (fStageHeight - target._height) / 2;
}
target._xscale = _loc3_;
target._yscale = _loc3_;
target._x = _loc6_;
target._y = _loc7_;
timeline.gotoAndPlay(10);
loader.removeListener(this);
delete loader;
delete loaderListener;
};
loaderListener.onLoadError = function(target, errorCode, httpStatus)
{
timeline.gotoAndPlay(10);
};
loader.addListener(loaderListener);
loader.loadClip(csPreloader,preloader_mc.target);
}
else
{
timeline.gotoAndPlay(10);
}